﻿using fastdbServer.BasicModel;
using fastdbServer.Models;

namespace fastdbServer.Controllers;

public class DataBaseController : BasicController
{
    public DataResult<string> Execute(string sql, string args)
    {
        var result = Program.Db.Execute(sql);
        Console.WriteLine(Environment.NewLine + "result:" + result);

        return DataResult<string>.CreateData(result);
    }
}